package com.cash.loan.modular.cash.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 产品轮播图
 * </p>
 *
 * @author yangbo123
 * @since 2018-07-09
 */
@TableName("product_ad_picture")
public class ProductAdPicture extends Model<ProductAdPicture> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 产品id
     */
    private Long productId;
    /**
     * 广告类型id
     */
    private Integer cateId;
    /**
     * 广告图路径
     */
    private String adImgUrl;
    /**
     * 广告宣传链接
     */
    private String adProductH5Url;
    /**
     * 状态 0禁用 1已用
     */
    private Long isUsed;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 修改时间
     */
    private Date modifyTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getCateId() {
        return cateId;
    }

    public void setCateId(Integer cateId) {
        this.cateId = cateId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public String getAdImgUrl() {
        return adImgUrl;
    }

    public void setAdImgUrl(String adImgUrl) {
        this.adImgUrl = adImgUrl;
    }

    public String getAdProductH5Url() {
        return adProductH5Url;
    }

    public void setAdProductH5Url(String adProductH5Url) {
        this.adProductH5Url = adProductH5Url;
    }

    public Long getIsUsed() {
        return isUsed;
    }

    public void setIsUsed(Long isUsed) {
        this.isUsed = isUsed;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ProductAdPicture{" +
                "id=" + id +
                ", productId=" + productId +
                ", cateId=" + cateId +
                ", adImgUrl='" + adImgUrl + '\'' +
                ", adProductH5Url='" + adProductH5Url + '\'' +
                ", isUsed=" + isUsed +
                ", createTime=" + createTime +
                ", modifyTime=" + modifyTime +
                '}';
    }
}
